--
-- Author: songjianbang
-- Date: 2018.8.30
--
-- SecretLevelUpView 赛季等级变化

local fileName = string.getModeName(...)
local ClassRef = class(fileName, app.mvc.ViewBase)

local Res = {
    SecretLevelUp = "ui2/secret/secret_layer_up.csb",
}
ClassRef.VIEW_ROOT_RES = Res.SecretLevelUp

function ClassRef:init()
	self._ui.Button_queding:addClickEventListener(function()
			self:closeView()
		end)
end

function ClassRef:refresh(data)
    if data then
        self._ui["Panel/tlt"]:setString(data.title1)
        self._ui["Panel/icon_1/num"]:setString(data.lv)
        self._ui["Panel/tips"]:setString(data.tips2)
    end
end

-- function ClassRef:refreshSecret(data)
-- 	self._ui.tlt:setString(data.title1)
-- 	if data.title2 then
-- 		self._ui.tips:setString(data.title2)
		
-- 		display.doTipBgLayout(self._ui.tips, self._ui.tips_img)
-- 	else
-- 		self._ui.tips_img:hide()
-- 		self._ui.tips:hide()
-- 	end
-- 	if data.tips1 then
-- 		self._ui.tips_1:setString(data.tips1)
-- 	else
-- 		self._ui.tips_1:hide()
-- 	end
	
-- 	if data.tips2 then
-- 		self._ui.tips_2:setString(data.tips2)
-- 	else
-- 		self._ui.tips_2:hide()
-- 	end

-- 	self._ui["Panel/icon_1/num"]:setString(data.lv)
-- end


return ClassRef